package com.yupi.project.provider;

import java.util.concurrent.CompletableFuture;

/**
 * @author zzsource
 * @creat 2023-03-04-18:47
 */
public interface DemoService {

    String sayHello(String name);

    String sayHello2(String name);

    default CompletableFuture<String> sayHelloAsnc(String name){
        return CompletableFuture.completedFuture(sayHello(name));
    }

}
